<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateRegistroVehiculoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateRegistroVehiculoLabel_idRegistroVehiculo}" for="idRegistroVehiculo" />
                    <h:inputText id="idRegistroVehiculo" value="#{registroVehiculoController.selected.idRegistroVehiculo}" title="#{bundle.CreateRegistroVehiculoTitle_idRegistroVehiculo}" required="true" requiredMessage="#{bundle.CreateRegistroVehiculoRequiredMessage_idRegistroVehiculo}"/>
                    <h:outputLabel value="#{bundle.CreateRegistroVehiculoLabel_placa}" for="placa" />
                    <h:inputText id="placa" value="#{registroVehiculoController.selected.placa}" title="#{bundle.CreateRegistroVehiculoTitle_placa}" />
                    <h:outputLabel value="#{bundle.CreateRegistroVehiculoLabel_fecha}" for="fecha" />
                    <h:inputText id="fecha" value="#{registroVehiculoController.selected.fecha}" title="#{bundle.CreateRegistroVehiculoTitle_fecha}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateRegistroVehiculoLabel_horaEntrada}" for="horaEntrada" />
                    <h:inputText id="horaEntrada" value="#{registroVehiculoController.selected.horaEntrada}" title="#{bundle.CreateRegistroVehiculoTitle_horaEntrada}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateRegistroVehiculoLabel_horaSalida}" for="horaSalida" />
                    <h:inputText id="horaSalida" value="#{registroVehiculoController.selected.horaSalida}" title="#{bundle.CreateRegistroVehiculoTitle_horaSalida}" >
                        <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateRegistroVehiculoLabel_parqueo}" for="parqueo" />
                    <h:selectOneMenu id="parqueo" value="#{registroVehiculoController.selected.parqueo}" title="#{bundle.CreateRegistroVehiculoTitle_parqueo}" required="true" requiredMessage="#{bundle.CreateRegistroVehiculoRequiredMessage_parqueo}">
                        <f:selectItems value="#{parqueoController.itemsAvailableSelectOne}"/>
                    </h:selectOneMenu>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{registroVehiculoController.create}" value="#{bundle.CreateRegistroVehiculoSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{registroVehiculoController.prepareList}" value="#{bundle.CreateRegistroVehiculoShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateRegistroVehiculoIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
